package pers.wy.sell.dao;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import pers.wy.sell.domain.OrderMaster;

/**
 * @Author: 月落
 * @Date: Created in 16:06 2018/9/5
 */
public interface OrderMasterDao extends JpaRepository<OrderMaster, String> {

    /**
     * 查询订单
     *
     * @param buyerOpenid
     * @param pageable
     * @return
     */
    Page<OrderMaster> findByBuyerOpenid(String buyerOpenid, Pageable pageable);

}
